package com.cadre.web.controller.officer;

import com.cadre.system.domain.officer.Chart;
import com.cadre.system.service.IndexCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RequestMapping({"/index"})
@RestController
/* loaded from: IndexCountController.class */
public class IndexCountController {
    @Autowired
    IndexCountService indexSer;

    @GetMapping({"/category"})
    public List<Chart> totalCadre() {
        List<Chart> list = new ArrayList<>();
        Chart c1 = new Chart();
        c1.setName("省部级干部");
        c1.setValue(325L);
        list.add(c1);
        Chart c2 = new Chart();
        c2.setName("正厅级干部");
        c2.setValue(4215L);
        list.add(c2);
        Chart c3 = new Chart();
        c3.setName("副厅级干部");
        c3.setValue(13321L);
        list.add(c3);
        Chart c4 = new Chart();
        c4.setName("正处级干部");
        c4.setValue(1062L);
        list.add(c4);
        Chart c5 = new Chart();
        c5.setName("副处级干部");
        c5.setValue(265L);
        list.add(c5);
        Chart c6 = new Chart();
        c6.setName("企业干部");
        c6.setValue(435L);
        list.add(c6);
        return list;
    }

    @GetMapping({"/education"})
    public List<Chart> totalEducation() {
        List<Chart> list = new ArrayList<>();
        Chart c1 = new Chart();
        c1.setName("研究生");
        c1.setValue(3070L);
        list.add(c1);
        Chart c2 = new Chart();
        c2.setName("大学本科");
        c2.setValue(8930L);
        list.add(c2);
        Chart c3 = new Chart();
        c3.setName("大学专科");
        c3.setValue(5320L);
        list.add(c3);
        Chart c4 = new Chart();
        c4.setName("高中，中技");
        c4.setValue(40L);
        list.add(c4);
        Chart c5 = new Chart();
        c5.setName("初中及以下");
        c5.setValue(10L);
        list.add(c5);
        return list;
    }

    @GetMapping({"/institution"})
    public List<Chart> totalInstitution() {
        return new ArrayList<>();
    }
}
